package homework.day09; 
 /*
 @Time: 2022/7/21 20:31
 @Author:GShuai
 @File:Test02.class
 @Software:IntelliJ IDEA
*/

import java.util.ArrayList;
import java.util.Collection;

/**
 * 改错题
 */

public class Test02 {
    //	public static void mian(String args) {
    public static void main(String[] args) {
        //语法错误，缺少()
//	Collection<String> c = new ArrayList;
        Collection<String> c = new ArrayList<>();
        c.add("one");
        c.add("two");
        c.add("three");
        c.add("four");
        c.add("five");
        for(String s : c) {
            System.out.println(s);
        }
    }
}
